package com.ksyun.campus.client.param;

/**
 * @author sxt
 * @version 1.0
 * @description TODO
 * @date 2023/8/11 01:47
 */
public class MetaServerParse {
    private String ip;

    private String port;

    /**
     * 区域：北京、上海、天津
     */
    private String zone;

    /**
     * 机架
     */
    private String rack;
    /**
     * 是否是master metaserver节点
     */
    private boolean master;


    public MetaServerParse(String ip, String port, String zone, String rack) {
        this.ip = ip;
        this.port = port;
        this.zone = zone;
        this.rack = rack;
    }

    public MetaServerParse() {
    }

    public boolean isMaster() {
        return master;
    }

    public void setMaster(boolean master) {
        this.master = master;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getZone() {
        return zone;
    }

    public void setZone(String zone) {
        this.zone = zone;
    }

    public String getRack() {
        return rack;
    }

    public void setRack(String rack) {
        this.rack = rack;
    }
}
